.class public Lcom/instagram/creation/base/ui/h;
.super Landroid/widget/LinearLayout;
.source "IgRadioGroup.java"


# instance fields
.field private a:I

.field private b:Lcom/instagram/creation/base/ui/g;

.field private c:Z

.field private d:Lcom/instagram/creation/base/ui/l;

.field private e:Lcom/instagram/creation/base/ui/m;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter

    .prologue
    .line 28
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 16
    const/4 v0, -0x1

    iput v0, p0, Lcom/instagram/creation/base/ui/h;->a:I

    .line 20
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/creation/base/ui/h;->c:Z

    .line 29
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/instagram/creation/base/ui/h;->setOrientation(I)V

    .line 30
    invoke-direct {p0}, Lcom/instagram/creation/base/ui/h;->a()V

    .line 31
    return-void
.end method

.method private a()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 34
    new-instance v0, Lcom/instagram/creation/base/ui/j;

    invoke-direct {v0, p0, v1}, Lcom/instagram/creation/base/ui/j;-><init>(Lcom/instagram/creation/base/ui/h;Lcom/instagram/creation/base/ui/i;)V

    iput-object v0, p0, Lcom/instagram/creation/base/ui/h;->b:Lcom/instagram/creation/base/ui/g;

    .line 35
    new-instance v0, Lcom/instagram/creation/base/ui/m;

    invoke-direct {v0, p0, v1}, Lcom/instagram/creation/base/ui/m;-><init>(Lcom/instagram/creation/base/ui/h;Lcom/instagram/creation/base/ui/i;)V

    iput-object v0, p0, Lcom/instagram/creation/base/ui/h;->e:Lcom/instagram/creation/base/ui/m;

    .line 36
    iget-object v0, p0, Lcom/instagram/creation/base/ui/h;->e:Lcom/instagram/creation/base/ui/m;

    invoke-super {p0, v0}, Landroid/widget/LinearLayout;->setOnHierarchyChangeListener(Landroid/view/ViewGroup$OnHierarchyChangeListener;)V

    .line 37
    return-void
.end method

.method private a(IZ)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 115
    invoke-virtual {p0, p1}, Lcom/instagram/creation/base/ui/h;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 116
    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/instagram/creation/base/ui/f;

    if-eqz v1, :cond_0

    .line 117
    check-cast v0, Lcom/instagram/creation/base/ui/f;

    invoke-interface {v0, p2}, Lcom/instagram/creation/base/ui/f;->setChecked(Z)V

    .line 119
    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/base/ui/h;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 13
    invoke-direct {p0, p1}, Lcom/instagram/creation/base/ui/h;->setCheckedId(I)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/base/ui/h;IZ)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 13
    invoke-direct {p0, p1, p2}, Lcom/instagram/creation/base/ui/h;->a(IZ)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/base/ui/h;)Z
    .locals 1
    .parameter

    .prologue
    .line 13
    iget-boolean v0, p0, Lcom/instagram/creation/base/ui/h;->c:Z

    return v0
.end method

.method static synthetic a(Lcom/instagram/creation/base/ui/h;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 13
    iput-boolean p1, p0, Lcom/instagram/creation/base/ui/h;->c:Z

    return p1
.end method

.method static synthetic b(Lcom/instagram/creation/base/ui/h;)I
    .locals 1
    .parameter

    .prologue
    .line 13
    iget v0, p0, Lcom/instagram/creation/base/ui/h;->a:I

    return v0
.end method

.method static synthetic c(Lcom/instagram/creation/base/ui/h;)Lcom/instagram/creation/base/ui/g;
    .locals 1
    .parameter

    .prologue
    .line 13
    iget-object v0, p0, Lcom/instagram/creation/base/ui/h;->b:Lcom/instagram/creation/base/ui/g;

    return-object v0
.end method

.method private setCheckedId(I)V
    .locals 2
    .parameter "id"

    .prologue
    .line 108
    iput p1, p0, Lcom/instagram/creation/base/ui/h;->a:I

    .line 109
    iget-object v0, p0, Lcom/instagram/creation/base/ui/h;->d:Lcom/instagram/creation/base/ui/l;

    if-eqz v0, :cond_0

    .line 110
    iget-object v0, p0, Lcom/instagram/creation/base/ui/h;->d:Lcom/instagram/creation/base/ui/l;

    iget v1, p0, Lcom/instagram/creation/base/ui/h;->a:I

    invoke-interface {v0, p0, v1}, Lcom/instagram/creation/base/ui/l;->a(Lcom/instagram/creation/base/ui/h;I)V

    .line 112
    :cond_0
    return-void
.end method


# virtual methods
.method public a(Landroid/util/AttributeSet;)Lcom/instagram/creation/base/ui/k;
    .locals 2
    .parameter

    .prologue
    .line 160
    new-instance v0, Lcom/instagram/creation/base/ui/k;

    invoke-virtual {p0}, Lcom/instagram/creation/base/ui/h;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lcom/instagram/creation/base/ui/k;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-object v0
.end method

.method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
    .locals 3
    .parameter "child"
    .parameter "index"
    .parameter "params"

    .prologue
    const/4 v2, 0x0

    .line 66
    instance-of v0, p1, Lcom/instagram/creation/base/ui/f;

    if-eqz v0, :cond_1

    move-object v0, p1

    .line 67
    check-cast v0, Lcom/instagram/creation/base/ui/f;

    .line 68
    invoke-interface {v0}, Lcom/instagram/creation/base/ui/f;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 69
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/creation/base/ui/h;->c:Z

    .line 70
    iget v0, p0, Lcom/instagram/creation/base/ui/h;->a:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    .line 71
    iget v0, p0, Lcom/instagram/creation/base/ui/h;->a:I

    invoke-direct {p0, v0, v2}, Lcom/instagram/creation/base/ui/h;->a(IZ)V

    .line 73
    :cond_0
    iput-boolean v2, p0, Lcom/instagram/creation/base/ui/h;->c:Z

    .line 74
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/instagram/creation/base/ui/h;->setCheckedId(I)V

    .line 78
    :cond_1
    invoke-super {p0, p1, p2, p3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 79
    return-void
.end method

.method protected checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
    .locals 1
    .parameter "p"

    .prologue
    .line 168
    instance-of v0, p1, Landroid/widget/RadioGroup$LayoutParams;

    return v0
.end method

.method protected bridge synthetic generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams;
    .locals 1

    .prologue
    .line 13
    invoke-virtual {p0}, Lcom/instagram/creation/base/ui/h;->generateDefaultLayoutParams()Landroid/widget/LinearLayout$LayoutParams;

    move-result-object v0

    return-object v0
.end method

.method protected generateDefaultLayoutParams()Landroid/widget/LinearLayout$LayoutParams;
    .locals 2

    .prologue
    const/4 v1, -0x2

    .line 173
    new-instance v0, Lcom/instagram/creation/base/ui/k;

    invoke-direct {v0, v1, v1}, Lcom/instagram/creation/base/ui/k;-><init>(II)V

    return-object v0
.end method

.method public synthetic generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
    .locals 1
    .parameter "x0"

    .prologue
    .line 13
    invoke-virtual {p0, p1}, Lcom/instagram/creation/base/ui/h;->a(Landroid/util/AttributeSet;)Lcom/instagram/creation/base/ui/k;

    move-result-object v0

    return-object v0
.end method

.method public synthetic generateLayoutParams(Landroid/util/AttributeSet;)Landroid/widget/LinearLayout$LayoutParams;
    .locals 1
    .parameter "x0"

    .prologue
    .line 13
    invoke-virtual {p0, p1}, Lcom/instagram/creation/base/ui/h;->a(Landroid/util/AttributeSet;)Lcom/instagram/creation/base/ui/k;

    move-result-object v0

    return-object v0
.end method

.method public getCheckedRadioButtonId()I
    .locals 1

    .prologue
    .line 130
    iget v0, p0, Lcom/instagram/creation/base/ui/h;->a:I

    return v0
.end method

.method protected onFinishInflate()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 53
    invoke-super {p0}, Landroid/widget/LinearLayout;->onFinishInflate()V

    .line 56
    iget v0, p0, Lcom/instagram/creation/base/ui/h;->a:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    .line 57
    iput-boolean v2, p0, Lcom/instagram/creation/base/ui/h;->c:Z

    .line 58
    iget v0, p0, Lcom/instagram/creation/base/ui/h;->a:I

    invoke-direct {p0, v0, v2}, Lcom/instagram/creation/base/ui/h;->a(IZ)V

    .line 59
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/creation/base/ui/h;->c:Z

    .line 60
    iget v0, p0, Lcom/instagram/creation/base/ui/h;->a:I

    invoke-direct {p0, v0}, Lcom/instagram/creation/base/ui/h;->setCheckedId(I)V

    .line 62
    :cond_0
    return-void
.end method

.method public setOnCheckedChangeListener(Lcom/instagram/creation/base/ui/l;)V
    .locals 0
    .parameter "listener"

    .prologue
    .line 152
    iput-object p1, p0, Lcom/instagram/creation/base/ui/h;->d:Lcom/instagram/creation/base/ui/l;

    .line 153
    return-void
.end method

.method public setOnHierarchyChangeListener(Landroid/view/ViewGroup$OnHierarchyChangeListener;)V
    .locals 1
    .parameter "listener"

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/creation/base/ui/h;->e:Lcom/instagram/creation/base/ui/m;

    invoke-static {v0, p1}, Lcom/instagram/creation/base/ui/m;->a(Lcom/instagram/creation/base/ui/m;Landroid/view/ViewGroup$OnHierarchyChangeListener;)Landroid/view/ViewGroup$OnHierarchyChangeListener;

    .line 46
    return-void
.end method
